package com.hrt.bean;

/***********************************************************************
 * Module:  ProType.java
 * Author:  Administrator
 * Purpose: Defines the Class ProType
 ***********************************************************************/

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 产品分类表
 * 
 * @pdOid c0cfe761-9187-42f8-9e9e-e51656303519
 */

@Entity
@Table(name = "PRODUCT_TYPE")
public class ProType   implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7414391896646308991L;
	/**
	 * 类型ID
	 * 
	 * @pdOid 3d4df2b0-3d66-46ae-b6bf-2dfaeb113a76
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "TYPE_ID")
	private Long id;
	
	/**
	 * 类型编码
	 * 
	 * @pdOid c1c2b1ea-a520-4aac-91c9-d3c5b0d76506
	 */
	
	@Column(name = "TYPE_CODE", nullable = false)
	private java.lang.String typeCode;
	
	/**
	 * 类型名称
	 * 
	 * @pdOid ba45598b-1412-4325-a996-ec89252ebd96
	 */
	@Column(name = "TYPE_NAME", nullable = false)
	private java.lang.String typeName;
	/**
	 * 备注
	 * 
	 * @pdOid 02c2a4b8-dcdb-41e7-974d-e8e99f9c510f
	 */
	@Column(name = "NOTE")
	private java.lang.String note;
	/**
	 * 删除标记
	 * 
	 * @pdOid b2458405-1d83-4b4d-888f-15d690595431
	 */
	@Column(name = "ISDELETE", nullable = false)
	private java.lang.Integer isdelete = 0;

	
//	@OneToMany(
//	cascade={CascadeType.REMOVE, CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH},
//    mappedBy="proType")
//	private Set<ProductInfor> productList;

	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/** @pdOid 7410ba2d-d23b-4fe2-9975-222c69150c07 */
	public java.lang.String getTypeCode() {
		return typeCode;
	}

	/**
	 * @param newTypeCode
	 * @pdOid 16adbaeb-03e4-44fe-b636-981154ec97ff
	 */
	public void setTypeCode(java.lang.String newTypeCode) {
		typeCode = newTypeCode;
	}


	public java.lang.String getTypeName() {
		return typeName;
	}

	/**
	 * @param newTypeName
	 *
	 */
	public void setTypeName(java.lang.String newTypeName) {
		typeName = newTypeName;
	}

	/**
	 * 
	 * */
	public java.lang.String getNote() {
		return note;
	}

	/**
	 * @param newNote
	 * 
	 */
	public void setNote(java.lang.String newNote) {
		note = newNote;
	}

	/** @pdOid 3ce64f3b-3469-4e16-94be-34ec91be67ce */
	public java.lang.Integer getIsdelete() {
		return isdelete;
	}

	/**
	 * @param newIsdelete
	 * @pdOid afbf5f50-a42b-417a-a232-a39f111106e0
	 */
	public void setIsdelete(java.lang.Integer newIsdelete) {
		isdelete = newIsdelete;
	}

//	public Set<ProductInfor> getProductList() {
//	
//		return productList;
//	}
//
//	public void setProductList(Set<ProductInfor> productList) {
//		this.productList = productList;
//	}

	

}
